<!DOCTYPE html>
<html>

<head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
    <%- include conmon %>
</head>

<body>
    <!-- 引入头部 -->
    <%- include('header') %>

    <!-- js代码  用<% %>  包含 -->
    <% if(username){  %>
    <h2 class="text-info"> 欢迎你 : <%- username %> ！</h2>
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-4">
                <!-- 注册 / 登录按钮 -->
                <div>
                    <label for="">
                        <input type="button" class="btn btn-danger" onclick="location='/loginout'" value="注销">
                    </label>
                    <label for="">
                        <input type="button" class="btn btn-primary" onclick="location='/movie'" value="电影主页">
                    </label>
                </div>
            </div>
        </div>
    </div>
    <%  }else{  %>
    <h3 class="text-primary">你还没有登录，马上取登录。。。</h3>
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-4">
                <!-- 注册 / 登录按钮 -->
                <div>
                    <label for="">
                        <input type="button" class="btn btn-primary" onclick="location='/login'" value="登录">
                    </label>
                    <label for="">
                        <input type="button" class="btn btn-info" onclick="location='/register'" value="注册">
                    </label>
                </div>
            </div>
        </div>
    </div>

    <% } %>

    <!-- 尾部结构 -->
    <%- include('footer') %>

</body>

</html>